package com.zky.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zky.common.utils.PageUtils;
import com.zky.gulimall.product.entity.CategoryEntity;
import com.zky.gulimall.product.vo.CateLog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zky
 * @email 574096634@qq.com
 * @date 2022-08-17 21:28:48
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //返回树形结构类目
    List<CategoryEntity> listWithTree();

    //根据id删除菜单
    void removeMenuIds(List<Long> asList);

    Long[] findCategoryPath(Long catelogId);

    //级联更新
    void updateCasCade(CategoryEntity category);

    //返回一级分类
    List<CategoryEntity> getLevel1Catorys();

    //查出所有分类
    Map<String, List<CateLog2Vo>> getCatalogJson();
}

